import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
// 查询列表
export const getDataByPage = (params: object) => {
  return http.post(PORT1 + `/secure/policyList`,params); // 正常 post json 请求  ==>  application/json
};
// 新增
export const addData = (params: object) => {
  return http.post(PORT1 + `/secure/policyAdd`, params, { loading: true }); // 正常 post json 请求  ==>  application/json
};
// 更新
export const editData = (params: object) => {
  return http.post(PORT1 + `/secure/policyUpdate`, params, { loading: true }); // 正常 post json 请求  ==>  application/json
};
// 删除列表
export const deleteData = (params: object) => {
  return http.post(PORT1 + `/secure/policyDel`, params, { loading: true }); // 正常 post json 请求  ==>  application/json
};
